package com.jt61016.ch04.simple;

public class Test {
    public static void main(String[] args) {
        // test1();
        test1_1();
    }

    public static void test1() {
        Resume resume1 = new Resume("张三");
        resume1.setPersonalInfo("男", 22);
        resume1.setWorkExperience("2024-2025", "阿里巴巴");

        Resume resume2 = new Resume("张三");
        resume2.setPersonalInfo("男", 22);
        resume2.setWorkExperience("2024-2025", "连江县宣传部");

        System.out.println("发送给互联网公司的简历 : " + resume1);
        System.out.println("发送给福州市党委的简历 : " + resume2);
    }

    public static void test1_1() {
        Resume resume1 = new Resume("张三");
        resume1.setPersonalInfo("男", 22);
        resume1.setWorkExperience("2024-2025", "阿里巴巴");

        Resume resume2 = resume1;
        resume2.setWorkExperience("2024-2025", "连江县宣传部");

        System.out.println("发送给互联网公司的简历 : " + resume1);
        System.out.println("发送给福州市党委的简历 : " + resume2);
    }
}
